package com.junpuxin.service;

import com.github.pagehelper.PageInfo;
import com.junpuxin.dto.AssetsInsertDTO;
import com.junpuxin.dto.AssetsPageDTO;
import com.junpuxin.dto.AssetsUpdateDTO;
import com.junpuxin.entity.Assets;
import com.junpuxin.excel.AssetsExcel;
import com.junpuxin.vo.AssetsVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author junpuxin
 */
public interface AssetsService {

    int insert(AssetsInsertDTO dto);

    Assets select(Long id);

    List<AssetsVO> list();

    PageInfo<Assets> page(AssetsPageDTO dto);

    int update(AssetsUpdateDTO dto);

    int delete(Long id);

    int deleteBatch(List<Long> ids);

    String uploadPicture(MultipartFile pictureFile, Long id);

    List<AssetsExcel> getExcelData();
}
